package com.zone.mybatis.executor;

import com.zone.mybatis.mapping.MappedStatement;
import com.zone.mybatis.transaction.Transaction;

import java.sql.SQLException;
import java.util.List;

/**
 * @author: zongzi
 * @description: TODO
 * @date: 2024/1/1
 */
public interface Executor {

    <T> List<T> query(MappedStatement ms, Object paramObject);

    Transaction getTransaction();

    void commit() throws SQLException;

    void rollback() throws SQLException;

    void close() throws SQLException;
}
